Kill Process
AutomatR.DefaultActivities.General.KillProcess
The "Kill Process" activity in AutomatR, categorized under Application, terminates a designated Windows process. This activity is useful for automation workflows where it is necessary to end specific processes running on a Windows machine.
Properties
Name | Description |
---|---|
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Kill Process" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
ID | Specifies the process ID that you want to terminate. Integer variables containing the process ID. |
Process Name | Specifies the name of the process that you want to terminate. String variables containing the process name. |
How to use:
- Drag and drop the "Kill Process" activity onto the workflow.
- Configure the properties by specifying the process name or process ID that you want to terminate.
- Optionally, configure the delay based on your requirements.
- Execute the workflow to terminate the specified process.
Example: Consider an example where the "Kill Process" activity is used to terminate an instance of Google Chrome:
Kill Process:
Process Name: "chrome"
In this example, the activity terminates all instances of the Google Chrome process running on the current session.